<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <img src="./15图/华.jpg" title="火锅">
        <button>选择</button>
    </div>
    <script>
        var btn = document.querySelector('button');//获得button元素
        var img = document.querySelector('img');//获得img元素
        btn.onclick = function(){
            img. src='15图/三神.jpg';
        }
    </script>
</body>
</html>